From: Florian Müllner Date: Wed, 9 Feb 2011 22:55:50 +0000 (+0100) Subject: dash: Don't unnecessarily animate icon size changes X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~9061 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=165f4e38b7f29577381f1bde78c1935f10d746dd;p=gnome-shell.git dash: Don't unnecessarily animate icon size changes We already skip animations for item additions/removals while the overview is hidden or when initially filling the dash (to avoid an odd zoom effect when showing), apply the same logic to animations of icon size changes. --- diff --git a/js/ui/dash.js b/js/ui/dash.js index e4d18abb4..737b35d3a 100644 --- a/js/ui/dash.js +++ b/js/ui/dash.js @@ -434,6 +434,12 @@ Dash.prototype = { // Set the new size immediately, to keep the icons' sizes // in sync with this._iconSize icon.setIconSize(this._iconSize); + + // Don't animate the icon size change when the overview + // is not visible or when initially filling the dash + if (!Main.overview.visible || !this._shownInitially) + continue; + let [targetWidth, targetHeight] = icon.icon.get_size(); // Scale the icon's texture to the previous size and